<template>

    <RouterLink to="/UserFinanShow" style="margin-right: 30px;" >用户购买理财</RouterLink>
    <RouterLink to="/UserBorrShow" style="margin-right: 30px;" >用户借款</RouterLink>
    <h1>投资项目列表</h1>

    <InvestInfoContent v-slot="info">
        <a href="#" @click="Jump(info.id)">投资</a>
    </InvestInfoContent>

</template>

<script setup lang="ts">
import InvestInfoContent from './InvestInfoContent.vue'
import { useRouter } from 'vue-router';

const router = useRouter();

const Jump = (Id:string)=>{
    router.push({
        name:'UserInvestAdd',
        params:{
            Id:Id
        }
    })
}

</script>